package publisher;

public class Publisher {
	private String identity = null;

	private int state = 0;

	public Publisher() {
	}

	// REQUIRES: true
	// MODIFIES: none
	// EFFECTS: Gets the Communication identity
	public String getIdentity() {
		return this.identity;
	}

	// REQUIRES: true
	// MODIFIES: none
	// EFFECTS: Gets the Publisher state
	public int getState() {
		return this.state;
	}

	// REQUIRES: true
	// MODIFIES: none
	// EFFECTS: Handles the Communication message
	public String run(String message) {
		return null;
	}

	// REQUIRES: true
	// MODIFIES: this.identity
	// EFFECTS: Sets the Communication identity
	public void setIdentity(final String sn) {
		this.identity = sn;
	}

	// REQUIRES: true
	// MODIFIES: this.state
	// EFFECTS: Sets the Publisher state
	public void setState(final int state) {
		this.state = state;
	}
}